package com.mall.product.mapper;

import com.mall.entity.TbSpecOption;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 规范选择映射器
 * created with IntelliJ IDEA
 *
 * @author ASUS
 * @Auther: W
 * @Date: 2021/07/16/15:34
 * Other:
 * @date 2021/07/18
 */
@Mapper
public interface SpecOptionMapper {


    /**
     * 发现通过id
     *
     * @param specId 规范标识
     * @return {@link List<TbSpecOption>}
     */
    List<TbSpecOption> findById(Integer specId);

    /**
     * 添加
     *
     * @param tbSpecOption 结核病规格选择
     */
    void add(TbSpecOption tbSpecOption);

    void deleteByLificationId(Integer id);

    TbSpecOption findOne(Integer id);
}
